name_list =['张三','李四','王五','张三']

# for不适合删除修改
for name in name_list:
    print(name)


# while可用于删除、修改
i = 0
while i < len(name_list):
    print(name_list[i])
    i += 1
